import React from "react";
import "./TitleText.less";
import center_title from "@/assets/images/center_title.png";

interface TitletextProps {
  title: Array<any>;
}
const Titletext: React.FC<TitletextProps> = ({ title }) => {
  console.log(title);
  return (
    <div className="titlefont">
      <img src={center_title} alt="" />
      {/* {title.map((font, index) => (
        <span
          className="titleColor"
          style={
            {
              "--Color": font.color
            } as React.CSSProperties
          }
          key={index}
        >
          {font.name}
        </span> // 确保返回 JSX 元素
      ))} */}
    </div>
  );
};

export default Titletext;
